<?php
/**
 *  Form Renderer Interface
 *
 */
interface Yz_Form_Renderer_Interface
{
    /**
     *  @param Yz_Template_Interface $template
     *  @return string  rendered code(HTML)
     */
    public function render(Yz_Template_Interface $template);

    /** Assign values which will be used for rendering (null: use default or parsed values)
     *  @param Yz_Item_Interface $values
     *  @return this
     */
    public function setValues(Yz_Item_Interface $values=null);
}
